{extend name="PublicBase/showBase" /}

{block name="body"}
<div class="main">
    <div class="row">
        <div class="col-md-12">
            <section class="tile color transparent-black">
                <div class="tile-header bg-transparent-black-2">
                    <h1>
                        {if condition="$Info eq ''"}
                            {:lang('SpCsXz')}
                        {else /}
                            {:lang('SpCsGx')}
                        {/if}
                    </h1>
                    <div class="controls">
                        <a href="javascript:void(0);" onclick="window.history.back();"><i class="fa fa-arrow-left"></i></a>
                        {if condition="$Info eq ''"}
                            <a href="{:url('MallKinds/showAdd')}"><i class="fa fa-refresh"></i></a>
                        {else /}
                            <a href="{:url('MallKinds/showEdit', array('id'=>$Info['kinds_id']))}"><i class="fa fa-refresh"></i></a>
                        {/if}
                    </div>
                </div>
                <div class="tile-body nopadding">
                    <form class="FormTable" action="" method="post">
                        <div class="tile-body">
                            <div class="row">
                                <div class="form-group col-sm-12">
                                    <label>{:lang('SpCsSp')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="kinds_types">
                                        {volist name="Types" id="vo"}
                                            <option value="{$vo.types_id}" {eq name="Info['kinds_types']" value="$vo['types_id']"}selected{/eq}>{$vo.types_name}</option>
                                        {/volist}
                                    </select>
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('SpCsMc')}</label>
                                    <input type="text" class="form-control required" name="kinds_name" value="{$Info.kinds_name}" placeholder="{:lang('SpCsMcWk')}" />
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('SpCsLx')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="kinds_type">
                                        <option value="1" {eq name="Info['kinds_type']" value="1"}selected{/eq}>{:lang('SpCsLx1')}</option>
                                        <option value="2" {eq name="Info['kinds_type']" value="2"}selected{/eq}>{:lang('SpCsLx2')}</option>
                                    </select>
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('SpCsFs')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="kinds_input">
                                        <option value="1" {eq name="Info['kinds_input']" value="1"}selected{/eq}>{:lang('SpCsFs1')}</option>
                                        <option value="2" {eq name="Info['kinds_input']" value="2"}selected{/eq}>{:lang('SpCsFs2')}</option>
                                    </select>
                                </div>
                                <div class="form-group col-sm-12" id="div_input">
                                    <label>{:lang('SpCsNr')}</label>
                                    <input type="text" class="form-control" name="kinds_content" value="{$Info.kinds_content}" placeholder="{:lang('SpCsNrWk')}">
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('SpCsZt')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="kinds_state">
                                        <option value="1" {eq name="Info['kinds_state']" value="1"}selected{/eq}>{:lang('SpCsZt1')}</option>
                                        <option value="2" {eq name="Info['kinds_state']" value="2"}selected{/eq}>{:lang('SpCsZt2')}</option>
                                    </select>
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('SpCsPx')}</label>
                                    <input type="text" class="form-control" name="kinds_sort" value="{$Info.kinds_sort|default=0}" placeholder="{:lang('SpCsPxWk')}{:lang('SpCsPxAl')}" onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="3" />
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="tile-footer bg-transparent-black-2 rounded-bottom-corners">
                    <div class="row">
                        <div class="col-sm-12 text-center">
                            <button type="button" class="btn btn-{:config('CNF_BTNCOLOR')} ajax-post">{:lang('XtAnTj')}</button>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
{/block}

{block name="script"}
    <script>
        $(function(){
            
        })
    </script>
{/block}
      
